package com.lin.dao;

import com.lin.pojo.Books;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName BookMapper
 * @Description
 * @Author lin
 * @Date 2021/12/13 下午11:28
 * @Version V1.0
 */
@Mapper
public interface BookMapper {
    //增加一个Book
    int addBook(Books book);

    //根据id删除一个Book
    int deleteBookById(int id);

    //更新Book
    int updateBook(Books books);

    //根据id查询,返回一个Book
    Books queryBookById(int id);

    //查询全部Book,返回list集合
    List<Books> queryAllBook();
}
